package com.pisolution.scheduler.runtime.worker.processor;

import com.pisolution.scheduler.runtime.context.TaskExecutionContext;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 用于执行任务节点.
 *
 * @author sora
 * @version 0.1.0
 */
public final class TaskExecuteThread implements Runnable {
    private static final Logger LOGGER = LoggerFactory.getLogger(TaskExecuteThread.class);

    // -------------------------------------------------------------------------------------------------

    /** 当前待执行任务节点的上下文环境. */
    private final TaskExecutionContext context;

    /** 用于发送处理完成的任务响应数据. */
    private final TaskCallbackService service;

    // -------------------------------------------------------------------------------------------------
    //  初始化
    // -------------------------------------------------------------------------------------------------

    public TaskExecuteThread(final TaskExecutionContext context, final TaskCallbackService service) {
        this.context = context;
        this.service = service;
    }

    // -------------------------------------------------------------------------------------------------
    //  执行任务
    // -------------------------------------------------------------------------------------------------

    @Override
    public void run() {
    }
}
